import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//按照权限查询部门
export function byPermission(data) {
    return request({
        url: baseUrl + "/pc/department/byPermission",
        method: "get",
        params: data
    });
}

//获取可查看年级
export function studentYear(data) {
    return request({
        url: baseUrl + "/pc/stu-class/year",
        method: "get",
        params: data
    });
}

//远程搜索班级-带权限
export function studentClass(data) {
    return request({
        url: baseUrl + "/pc/stu-class/byName",
        method: "get",
        params: data
    });
}

//奖学金
export function reward(data) {
    return request({
        url: baseUrl + "/pc/data-analysis/reward",
        method: "get",
        params: data
    });
}

//证书查询
export function certificate(data) {
    return request({
        url: baseUrl + "/pc/data-analysis/certificate",
        method: "get",
        params: data
    });
}

//寝室等级
export function bedroomLevel(data) {
    return request({
        url: baseUrl + "/pc/data-analysis/bedroomLevel",
        method: "get",
        params: data
    });
}

//任职查询
export function job(data) {
    return request({
        url: baseUrl + "/pc/data-analysis/job",
        method: "get",
        params: data
    });
}

//文艺获奖
export function courseContests(data) {
    return request({
        url: baseUrl + "/pc/data-analysis/courseContests",
        method: "get",
        params: data
    });
}

//学科竞赛获奖
export function culturalActivitiesReward(data) {
    return request({
        url: baseUrl + "/pc/data-analysis/culturalActivitiesReward",
        method: "get",
        params: data
    });
}